import request from '@/utils/request'

// 查询条码菜单列表
export function listMenu(query) {
  return request({
    url: '/barcode/menu/list',
    method: 'get',
    params: query
  })
}

// 查询条码菜单详细
export function getMenu(ID) {
  return request({
    url: '/barcode/menu/' + ID,
    method: 'get'
  })
}

// 新增条码菜单
export function addMenu(data) {
  return request({
    url: '/barcode/menu',
    method: 'post',
    data: data
  })
}

// 修改条码菜单
export function updateMenu(data) {
  return request({
    url: '/barcode/menu',
    method: 'put',
    data: data
  })
}

// 删除条码菜单
export function delMenu(ID) {
  return request({
    url: '/barcode/menu/' + ID,
    method: 'delete'
  })
}
